package com.yuexunit.operationman.nbsy.module.InterventionalOperation.adapter;

import android.widget.AbsListView;

import com.yuexunit.operationman.nbsy.R;
import com.yuexunit.operationman.nbsy.module.InterventionalOperation.Bean.FlaxmeterBean;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by chenss on 2017/9/8 0008.
 */

public class FlaxMeterAdapter extends KJAdapter<FlaxmeterBean> {

    public FlaxMeterAdapter(AbsListView view, Collection<FlaxmeterBean> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder helper, FlaxmeterBean item, boolean isScrolling) {
        helper.setText(R.id.flaxmeter_time,item.getTime());
        helper.setText(R.id.flaxmeter_rate,item.getRate());
        helper.setText(R.id.flaxmeter_bp,item.getDbp() + "/" + item.getSbp());
        helper.setText(R.id.flaxmeter_saturation,item.getSaturation());
    }
}
